package tests;

import java.util.ArrayList;
import java.util.Collections;

import javax.swing.JFrame;
import javax.swing.JScrollBar;

import explorer.Elements;
import explorer.ExplorerPanel;

public class PanelTest {

	public static void main(String[] args) {
		
		
		ArrayList<String> sample=new ArrayList<String>();
		Collections.addAll(sample, "Icon00", "Icon01", "Icon02", "Icon03", "Icon04", "Icon05",
									"Icon10", "Icon11", "Icon12", "Icon13", "Icon14", "Icon15");
		
		Elements elements= new Elements(sample);
		ExplorerPanel panel= new ExplorerPanel(elements);
		JFrame frame=new JFrame();
//		JScrollBar scrollablePanel= new JScrollBar();
//		scrollablePanel.add(panel);
		frame.getContentPane().add(panel);
//		frame.getContentPane().add(scrollablePanel);
//		frame.addKeyListener(controller);
//		panel.addKeyListener(controller);
		frame.setTitle("Windows Explorer");
		frame.setSize(470,270);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		
	}
	
	
	
	
}
